#include <iostream>
using namespace std;

int main()
{
    double t1;
    double t2;
    double v1;
    double v2;
    double a;
    while(1){
        double ap = 0;

        for(int i=1;i<=3;++i){
            cout<<"please cin t1 and t2"<<endl;
            cin>>t1;
            cin>>t2;
            v1 = 5/t1;
            v2 = 5/t2;
            a = (v2 * v2 - v1 * v1) / (2 * 70);
            ap += a;
            cout<<"v1 = "<<v1<<" "<<"v2 = "<<v2<<endl;
            cout<<endl;
            cout<<"a = "<<a<<endl;
            cout<<endl;
        }

        cout<<"ap = "<<ap/3<<endl;

        cout<<endl;
    }

    return 0;
}
